package com.atguigu.lease.common.minioProperties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.io.File;
import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.UUID;


@ConfigurationProperties(prefix = "myminio")
@Data
public class MinioMyProperties {
    String userName = "minioadmin";
    String password = "minioadmin123";
    String endPoint = "http://192.168.162.129:9000";
    String bucketName = "java-01";


    String policy = """
            {
              "Version": "2012-10-17",
              "Statement": [
                {
                  "Effect": "Allow",
                  "Principal": {"AWS": ["*"]},
                  "Action": [
                    "s3:GetBucketLocation",
                    "s3:ListBucket"
                  ],
                  "Resource": ["arn:aws:s3:::java-01"]
                },
                {
                  "Effect": "Allow",
                  "Principal": {"AWS": ["*"]},
                  "Action": [
                    "s3:GetObject"
                  ],
                  "Resource": ["arn:aws:s3:::java-01/*"]
                }
              ]
            }
            """;



}
